﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sahit.iSoilHotel.Domain.Seedwork;
using System.ComponentModel.DataAnnotations;

namespace Sahit.iSoilHotel.Domain.MainBoundedContext.Tavern.Aggregates.AuthenticationAgg
{
    public class Account : Entity, IValidatableObject
    {
        #region Members

        private ICollection<AccountRole> accountRoles;

        #endregion
        #region Properties

        public string Name { get; set; }
        public string Password { get; set; }
        public virtual ICollection<AccountRole> AccountRoles
        {
            get
            {
                return this.accountRoles ?? (this.accountRoles = new List<AccountRole>());
            }
            protected set
            {
                this.accountRoles = value;
            }
        }

        #endregion

        public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
        {
            throw new NotImplementedException();
        }
    }
}
